IF EXISTS (SELECT name FROM master.dbo.sysdatabases WHERE name = N'Test')
BEGIN
        DROP DATABASE Test;
END

CREATE DATABASE Test;
GO
